
public class CharacterToken extends Token {

	public Character value;
	
	public Object getValue() {
		//System.out.println("Charimage = |" + image + "|");
		
		if(image.equals("'\\t'"))
			value = new Character('\t');
		
		else if(image.equals("'\\n'"))
			value = new Character('\n');

		else if(image.equals("'\\\\'"))
			value = new Character('\\');

		else if(image.equals("'\\''"))
			value = new Character('\'');
								
		else if(image.equals("'\\r'"))
			value = new Character('\r');
		
		else if(image.equals("'\\b'"))
			value = new Character('\b');
		
		else
			value = Character.valueOf(image.toCharArray()[1]);
		
		return value;
	}
}
